#ifndef NF_UTF8CONVERTTOGBK_H
#define NF_UTF8CONVERTTOGBK_H

#include <stdio.h>
#include <string.h>
#include <stdint.h>

class UTF8ConvertGBK
{

public:	
	int static Utf8ToUnicode(char *utf8char, int* unicode, int *len, size_t leaveLen);

	int static Utf8ToGbk(char *strutf8, char *strgbk);

	int static GbkToUtf8(char *strgbk, char *strutf8);

	bool static IsTextUTF8(const char* str, size_t length);
};

#endif
